package com.wh.stock.pojo;

import java.lang.annotation.ElementType;
import java.math.BigDecimal;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.wh.productMag.pojo.ProductClassify;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * 实体类：
 */
@Data
@Accessors(chain = true)
public class Stock implements Serializable{

    /**
     * 产品id
     */
    private Integer id;
    private String picture;
    private String name;
    /**
     * 产品分类
     */
    private Integer classifyId;
    /**
     * 库存
     */
    private Integer stock;
    /**
     * 更新时间
     */
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;

    @TableField(exist = false)
     private String remark;//备注
    @TableField(exist = false)
     private String upuser;//修改人

     private BigDecimal price;
    @TableField(exist = false)
    private ProductClassify productClassify;  //产品分类
}
